#include <iostream>
#include <stdio.h>
using namespace std;

// 初始大小
const int InitSize = 10;

typedef struct
{
    int length;
    int MaxSize;
    ElemType *data;
} SQList;
typedef struct ElemType
{
    int data;
};

void Del_x(SQList &L, ElemType &value)
{
    int cnt = 0; // 记录有多少个不等的数字
    for (int i = 0; i < L.length; i++)
    {
        while (value.data = !L.data[i])
            L.data[cnt++] = L.data[i++];
    }
    L.length = cnt + 1;
}
int main(int argc, const char **argv)
{
    SQList L;
    L.data = (ElemType *)malloc(InitSize * sizeof(ElemType));
    L.data[0] = 1;
    L.data[1] = 2;
    L.data[2] = 10;
    L.data[3] = 3;
    L.data[4] = 1;
    L.data[5] = 2;
    L.data[6] = 3;
    L.length = 7;
    return 0;
}